<template>
  <a-modal v-model="visible" :title="title" :width="900" centered destroyOnClose class="edit-modal" @ok="handleSubmit"> </a-modal>
</template>
<script>
export default {
  data() {
    return {
      visible: false,
      title: '',
      editId: '',
      coupon: {}
    }
  },
  methods: {
    showModal(title, record) {
      this.visible = true
      this.title = title
      this.editId = record == 'add' ? 'add' : record.id
      this.coupon = record == 'add' ? {} : record
      if (record != 'add') {
        this.initialForm()
      }
    },
    initialForm() {},
    handleSubmit() {}
  }
}
</script>
<style src="../style/index.less" lang="less" scoped></style>

